Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Be explicit about test coverage and add footnotes #190

Merged
merged 5 commits into from
Jul 26, 2024
Merged

Be explicit about test coverage and add footnotes #190

merged 5 commits into from
Jul 26, 2024

Conversation

grst
Copy link
Contributor

@grst grst commented Jul 22, 2024

I tend to repeat myself in package reviews about

  • the definition of an API documentation and
  • applying good measure for test coverage.

This PR modifies the checklist to add some definitions in footnotes and adds an explicit statement that all public functions should
be covered by tests. Is that asking too much?

README.md Outdated
@@ -40,8 +40,8 @@ How does the package use scverse data structures (please describe in a few sente
- [ ] The code is publicly available under an [OSI-approved](https://opensource.org/licenses/alphabetical) license
- [ ] The package provides versioned releases
- [ ] The package can be installed from a standard registry (e.g. PyPI, conda-forge, bioconda)
- [ ] The package uses automated software tests and runs them via continuous integration (CI)
- [ ] The package provides API documentation via a website or README
- [ ] The package uses automated software tests that cover all public functions and runs them via continuous integration (CI)[^1]
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It is the correct expectation but a rather strong one. I'm fine with it but wonder what other people think. Maybe a quick question for zulip?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It is strong, but maybe it can be made less imposing by adding a paragraph about what a public API should be.

I think we should advise people to rather make their public API smaller than to compromise its testing or documentation.

In anndata, we recently documented the callback parameter signature of anndata.experimental.read_dispatched and in the process discovered what we had made implicitly public (if experimental).

To avoid a bunch of private things being made public, we made it all more correct and slimmer, which improved clarity here a lot.

@grst
Copy link
Contributor Author

grst commented Jul 26, 2024

Updated as discussed on zulip

@grst grst merged commit c9de2e1 into main Jul 26, 2024
3 checks passed
@grst grst deleted the grst-patch-1 branch July 26, 2024 15:51
grst added a commit that referenced this pull request Jul 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants